package com.u3k.mid;

import android.content.Context;
import com.u3k.app.mid.utils.net.Callback;
import com.u3k.app.mid.utils.statistics.StatisticsManager;

public class be implements Callback {
    final /* synthetic */ Context a;
    final /* synthetic */ long b;
    final /* synthetic */ StatisticsManager c;

    public be(StatisticsManager statisticsManager, Context context, long j) {
        this.c = statisticsManager;
        this.a = context;
        this.b = j;
    }

    public void onFailure(int i, String str) {
        ay.b(this.a);
        this.c.mPostingLog = false;
    }

    /* JADX WARNING: inconsistent code. */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public void onResponse(com.u3k.app.mid.utils.net.Response r6) {
        /*
        r5 = this;
        r4 = 0;
        r0 = r6.getString();
        r1 = com.u3k.app.mid.utils.statistics.StatisticsManager.TAG;
        r2 = new java.lang.StringBuilder;
        r2.<init>();
        r3 = "postLog onResponse resp=";
        r2 = r2.append(r3);
        r2 = r2.append(r0);
        r2 = r2.toString();
        com.u3k.mid.au.b(r1, r2);
        r1 = new org.json.JSONObject;	 Catch:{ JSONException -> 0x005b }
        r1.<init>(r0);	 Catch:{ JSONException -> 0x005b }
        r0 = r5.a;	 Catch:{ Exception -> 0x006a }
        com.u3k.mid.ay.a(r0);	 Catch:{ Exception -> 0x006a }
        r0 = "domain";
        r0 = r1.has(r0);	 Catch:{ Exception -> 0x006a }
        if (r0 == 0) goto L_0x003a;
    L_0x002f:
        r0 = "domain";
        r0 = r1.optString(r0);	 Catch:{ Exception -> 0x006a }
        r2 = r5.a;	 Catch:{ Exception -> 0x006a }
        com.u3k.mid.ay.a(r2, r0);	 Catch:{ Exception -> 0x006a }
    L_0x003a:
        r0 = "result";
        r0 = r1.getString(r0);	 Catch:{ JSONException -> 0x005b }
        if (r0 == 0) goto L_0x004a;
    L_0x0042:
        r1 = "0";
        r0 = r0.equals(r1);	 Catch:{ JSONException -> 0x005b }
        if (r0 == 0) goto L_0x004f;
    L_0x004a:
        r0 = r5.c;
        r0.mPostingLog = r4;
    L_0x004e:
        return;
    L_0x004f:
        r0 = r5.a;	 Catch:{ JSONException -> 0x005b }
        r2 = r5.b;	 Catch:{ JSONException -> 0x005b }
        com.u3k.mid.bd.a(r0, r2);	 Catch:{ JSONException -> 0x005b }
        r0 = r5.c;
        r0.mPostingLog = r4;
        goto L_0x004e;
    L_0x005b:
        r0 = move-exception;
        r0.printStackTrace();	 Catch:{ all -> 0x0064 }
        r0 = r5.c;
        r0.mPostingLog = r4;
        goto L_0x004e;
    L_0x0064:
        r0 = move-exception;
        r1 = r5.c;
        r1.mPostingLog = r4;
        throw r0;
    L_0x006a:
        r0 = move-exception;
        goto L_0x003a;
        */
        throw new UnsupportedOperationException("Method not decompiled: com.u3k.mid.be.onResponse(com.u3k.app.mid.utils.net.Response):void");
    }
}
